var aa = "dfasdfsad-dsdfasdf-ffdsfsdf-sdfdf";

aa = aa.replace(/-/g, '');

console.log(aa);